JBoss Community Archive (Read Only)

RHQ 4.5

Nagios Plugin Architecture

Name

Nagios

Description

 

RHQ Version

3.0.0.4

Plugin Version

 

View Source

 

Get Source

 

Plugin Architecture

The following UML diagramms give you an overview about the packages and contained classes that were implemented to handle the different tasks the livetstatus interface has to handle:

  • Initialize / Close connection to the MK_Livetstatus adress

  • Define LQL queries to request data from livestatus  and send them via the network interface

  • Receive replies and put them to Reply Objects

  • Parse the reply objects and put the parsed data into a software model that represents the Nagios structure

  • Offer the received data to the main plugin functinality

Overview about the packages and the classes they contain:

images/author/download/attachments/58819375/begriffsmodel.png

The Software model that represents the structure of the Nagios system (package "data"):  images/author/download/attachments/58819375/data.png

The classes that control the program and select the parsing methods for the single Livestatus Replies (package "controller"):  images/author/download/attachments/58819375/controller.png

The network class to communicate with mk_livestatus (package "network"): images/author/download/attachments/58819375/network.png

The request classes that implement the different kinds of possible livestatus requests. Each class contains the livestatus query language strings for the corresponding type of request (Host, Service, ...) (package "request"):  images/author/download/attachments/58819375/request.png

The reply classes that store the reply strings which are received from livetstatus and are given to the parser  (package "reply"): images/author/download/attachments/58819375/reply.png

The parser classes to parse the reply that comes from mk_livestatus and puts it to the classes from the data package: images/author/download/attachments/58819375/parser.png
 

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-12 12:35:12 UTC, last content change 2011-11-23 12:35:05 UTC.